package com.sw.bbs.common.common;

/**
 * Created by zgming on 2018/1/11.
 */
public enum LogOperateEnum {


    /*
        串并预警
     */
//    SEARCH_RESULT_EXPORT(14, "检索结果导出","sensetime.senseface.i18n.logoperation.search_result_export"),

    /*
        以图搜案
     */
    /*
        案件管理
     */
    CASES_EXPORT(30, "导出人像","sensetime.senseface.i18n.logoperation.target_export"),
    CASES_CREATE(31, "新建人像","sensetime.senseface.i18n.logoperation.target_create"),
    CASES_DELETE(32, "删除人像","sensetime.senseface.i18n.logoperation.target_delete"),
    CASES_EDIT(33, "编辑人像","sensetime.senseface.i18n.logoperation.target_edit"),
    CASES_EXPORT_FAILED(34, "导出入库失败照片","sensetime.senseface.i18n.logoperation.target_export_failed"),
    CASES_SHARE(35, "共享人像库","sensetime.senseface.i18n.logoperation.target_share"),

    /*
        系统设置
     */

    /*
        卷宗管理
     */
    /*
        角色操作模块
     */
//    ROLE_NEW(70, "新建","sensetime.senseface.i18n.logoperation.role_new"),
//    ROLE_EDIT(71, "编辑","sensetime.senseface.i18n.logoperation.role_edit"),
//    ROLE_DELETE(72, "删除","sensetime.senseface.i18n.logoperation.role_delete"),
//    ROLE_ENABLE(73, "启用","sensetime.senseface.i18n.logoperation.role_enable"),
//    ROLE_DISABLE(74, "禁用","sensetime.senseface.i18n.logoperation.role_disable"),

    /*
        用户操作模块
     */
//    ORG_NEW(81, "新建部门","sensetime.senseface.i18n.logoperation.org_new"),
//    ORG_EDIT(82, "编辑部门","sensetime.senseface.i18n.logoperation.org_edit"),
//    ORG_DELETE(83, "删除部门","sensetime.senseface.i18n.logoperation.org_delete"),
//    USER_NEW(84, "新建用户","sensetime.senseface.i18n.logoperation.user_new"),
//    USER_EDIT(85, "编辑用户","sensetime.senseface.i18n.logoperation.user_edit"),
//    USER_DELETE(86, "删除用户","sensetime.senseface.i18n.logoperation.user_delete"),
//    USER_ENABLE(87, "启用用户","sensetime.senseface.i18n.logoperation.enable"),
//    USER_DISABLE(88, "禁用用户","sensetime.senseface.i18n.logoperation.disable"),
//    VIDEO_PERMISSION(89, "视频源权限","sensetime.senseface.i18n.logoperation.video_permission"),
//    LIBRARY_PERMISSION(90, "人像库权限","sensetime.senseface.i18n.logoperation.library_permission"),

    /*
        日志操作模块
     */
    PERSON_MODIFY_PWD(91, "修改密码","sensetime.senseface.i18n.logoperation.person_modify_pwd"),
    PERSON_EDIT(92, "编辑个人信息","sensetime.senseface.i18n.logoperation.person_edit");
	
    private int type;
    private String name;
    private String i18n;

    LogOperateEnum(int type, String name, String i18n){
        this.type = type;
        this.name = name;
        this.i18n = i18n;
    }

    public static String getNameByType(int type){
        for(LogOperateEnum e : LogOperateEnum.values()){
            if(e.getType() == type){
                return e.getName();
            }
        }
        return "";
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

	public String getI18n() {
		return i18n;
	}

	public void setI18n(String i18n) {
		this.i18n = i18n;
	}
    
    
}
